/**
 * 
 */
package neptune.web.client.view.components.editor;

import neptune.web.client.model.topology.SerializableIPAddress;

import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.ui.TreeItem;

/**
 * @author Roberto Bifulco [RobertoBifulco.it] [info@robertoBifulco.it]
 *
 */
public class IpAddrPropsCommand implements Command {

	private TreeItem item;
	private SerializableIPAddress addr;

	public IpAddrPropsCommand(SerializableIPAddress addr,
			TreeItem treeItem) {
		super();
		this.item = treeItem;
		this.addr = addr;
	}
	
	/* (non-Javadoc)
	 * @see com.google.gwt.user.client.Command#execute()
	 */
	public void execute() {
		IpAddrPropsDialog dialog = new IpAddrPropsDialog(addr,item);
		dialog.center();
	}

}
